package com.walle.concurrenttest.pattern.singlethreadexecute;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.pattern.singlethreadexecute
 * @Description: ${todo}
 * @date 2019/2/18 13:58
 */
public class ToolTest {


    public static void main(String[] args) {
        Tool spoon = new Tool("勺子");
        Tool fork = new Tool("叉子");

        Thread t1 = new Thread(new EaterThread("张三",spoon,fork));
        Thread t2 = new Thread(new EaterThread("李四",fork,spoon));

        t1.start();
        t2.start();
    }
}
